<template>
	<view>
		<web-view :src="swiperList[0].detailsImgAndPageUrl"></web-view>
	</view>
</template>

<script>
	import { getBusinessInfoList, getRecommen, getHomeDataInfo, getCategory, insertPlugsShopCart, searchPlugsGoodsByCategoryId } from '../../../utils/api.js';
	export default {
		data() {
			return {
				swiperList:[]
			}
		},
		onShow() {
			this.getswiperList()
		},
		methods: {
			getswiperList() {
				let data = {
					// businessId: this.nowBusinessInfo.jsonViewData.businessId.toString()
					businessId: -1
				};
				getRecommen(data).then(res => {
					if (res.code == 200) {
						// this.carouselList = res.body
						this.swiperList = res.body.filter(itm => itm.type === 'gzh');
					}
				});
			},
		}
	}
</script>

<style>

</style>
